//
//  HsStringUtil.m
//  TUtils
//
//  Created by txj on 2017/3/9.
//  Copyright © 2017年 hs. All rights reserved.
//

#import "HsStringUtil.h"

@implementation HsStringUtil
//字符串判空
+(BOOL) isStringEmpty:(NSString *)string {
    if (string == nil || string == NULL) {
        return YES;
    }
    if ([string isKindOfClass:[NSNull class]]) {
        return YES;
    }
    if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0) {
        return YES;
    }
    return NO;
}

+(long long) toTenThousandInteger:(NSString*)string{
    long long val = [string longLongValue];
    val = floor(val/10000);
    return val;
}

@end
